package org.example.entity;

import java.io.File;

/**
 * 项目信息
 */
public class ProjectInfoEntity {

    /**
     * 包名前缀
     */
    private String packagePrefix;

    /**
     * 文件路径前缀
     */
    private String filePrefix;

    /**
     * 代码路径 src\main\java
     */
    private String javaBasePath = File.separator + "src" + File.separator + "main" + File.separator + "java";

    /**
     * 资源路径 src\main\resources
     */
    private String resBasePath = File.separator + "src" + File.separator + "main" + File.separator + "resources";

    public ProjectInfoEntity(String packagePrefix, String filePrefix) {
        this.packagePrefix = packagePrefix;
        this.filePrefix = filePrefix;
    }

    public String getPackagePrefix() {
        return packagePrefix;
    }

    public void setPackagePrefix(String packagePrefix) {
        this.packagePrefix = packagePrefix;
    }

    public String getFilePrefix() {
        return filePrefix;
    }

    public void setFilePrefix(String filePrefix) {
        this.filePrefix = filePrefix;
    }

    public String getJavaBasePath() {
        return javaBasePath;
    }

    public void setJavaBasePath(String javaBasePath) {
        this.javaBasePath = javaBasePath;
    }

    public String getResBasePath() {
        return resBasePath;
    }

    public void setResBasePath(String resBasePath) {
        this.resBasePath = resBasePath;
    }

    @Override
    public String toString() {
        return "ProjectInfoEntity{" +
                "packagePrefix='" + packagePrefix + '\'' +
                ", filePrefix='" + filePrefix + '\'' +
                ", javaBasePath='" + javaBasePath + '\'' +
                ", resBasePath='" + resBasePath + '\'' +
                '}';
    }
}
